<?php

namespace scenic\models;

use Yii;

/**
 * This is the model class for table "scenic_role".
 *
 * @property string $id
 * @property string $scenic_name
 * @property integer $scenic_ticket
 * @property double $ratio
 * @property string $rake
 * @property integer $create_time
 * @property integer $update_time
 * @property string $desc
 */
class ScenicRole extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'scenic_role';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['scenic_ticket', 'create_time', 'update_time'], 'integer'],
            [['ratio'], 'number'],
            [['scenic_name', 'rake', 'desc'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'scenic_name' => '景区名称',
            'scenic_ticket' => '景区门票',
            'ratio' => '抽成比例(%)',
            'rake' => '抽成(RMB)',
            'create_time' => '创建时间',
            'update_time' => '修改时间',
            'desc' => '备注',
        ];
    }


}
